define(function (require) {
    var $ = require("jquery");
    var SuperbUtil = require('SuperbUtil');
    var IssueUtil = require('IssueUtil');
    require("datetimepicker")($);
    function initSelfTestReportIssue() {
        var issueListCondition = {
            status: [5],
            date: date,
            isWeekly: 0,
            tableSelector: '#test_content',
            tpl: IssueUtil.selfTestContentTpl
        };
        IssueUtil.initIssueList(issueListCondition);
    }

    IssueUtil.getPeople('search');
    SuperbUtil.initUniform();
    // handles main menu
    SuperbUtil.handleSidebarMenu();
    // handles sidebar hide/show
    SuperbUtil.handleSidebarToggler();
    //handles scroll to top functionality in the footer
    SuperbUtil.handleGoTop();

    IssueUtil.getIssueStatus();
    IssueUtil.getPeople();
    IssueUtil.getBranch();
    IssueUtil.getProject();
    IssueUtil.getIssueType();
    IssueUtil.bindAddIssueButtonEvent();
    IssueUtil.bindAddIssueWindowCloseEvent();
    IssueUtil.bindSaveIssueButtonEvent(function () {
        IssueUtil.initIssueList();
    });
    initSelfTestReportIssue();

    var issueListCondition = {
        status: [5],
        date: date,
        isWeekly: 0,
        tableSelector: '#test_content',
        tpl: IssueUtil.selfTestContentTpl,
        developerSelector: '#search_developer'
    };
    IssueUtil.bindSelfTestSearchBtn(issueListCondition);
});
